using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Aspnet_PersonalizationPerUserManagerBase
    {
        public Aspnet_PersonalizationPerUserManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity Insert(Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity Update(Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.Update(obj);             
        }
 
 
        public Aspnet_PersonalizationPerUserEntity Delete(Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteById (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteById (Guid Id )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.Id = Id;  
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByLastUpdatedDate (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByPageSettings (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"PageSettings");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PageSettings 
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByPageSettings (string PageSettings )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PageSettings = PageSettings;  
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"PageSettings");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByPathId (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"PathId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PathId 
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByPathId (Guid PathId )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PathId = PathId;  
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"PathId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByUserId (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"UserId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId 
        /// </summary>
        /// <returns>Aspnet_PersonalizationPerUserEntity</returns>
        public Aspnet_PersonalizationPerUserEntity DeleteByUserId (Guid UserId )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.UserId = UserId;  
            return (Aspnet_PersonalizationPerUserEntity)Adapter.DeleteByField(obj,"UserId");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Aspnet_PersonalizationPerUserEntity Select(Aspnet_PersonalizationPerUserEntity obj)
        { 
            return (Aspnet_PersonalizationPerUserEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Aspnet_PersonalizationPerUserEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Aspnet_PersonalizationPerUserEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectAllLST()
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_PersonalizationPerUserEntity()),new Aspnet_PersonalizationPerUserEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_PersonalizationPerUserEntity(),option),new Aspnet_PersonalizationPerUserEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByIdLST (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByIdLST (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByIdLST (Guid Id )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.Id = Id;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByIdLST (Guid Id, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.Id = Id;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByLastUpdatedDateLST (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByLastUpdatedDateLST (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LastUpdatedDate",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return Adapter.SelectByField(obj,"PageSettings");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PageSettings",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPageSettingsLST (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PageSettings"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPageSettingsLST (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PageSettings",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (string PageSettings )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PageSettings = PageSettings;  
            return Adapter.SelectByField(obj,"PageSettings");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (string PageSettings, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PageSettings = PageSettings;  
            return Adapter.SelectByField(obj,"PageSettings",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPageSettingsLST (string PageSettings )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PageSettings = PageSettings;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PageSettings"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPageSettingsLST (string PageSettings, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PageSettings = PageSettings;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PageSettings",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return Adapter.SelectByField(obj,"PathId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PathId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPathIdLST (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PathId"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPathIdLST (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PathId",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Guid PathId )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PathId = PathId;  
            return Adapter.SelectByField(obj,"PathId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Guid PathId, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PathId = PathId;  
            return Adapter.SelectByField(obj,"PathId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPathIdLST (Guid PathId )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PathId = PathId;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PathId"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByPathIdLST (Guid PathId, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.PathId = PathId;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PathId",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByUserIdLST (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByUserIdLST (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UserId",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByUserIdLST (Guid UserId )
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.UserId = UserId;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectByUserIdLST (Guid UserId, SelectOptions option)
        { 
            Aspnet_PersonalizationPerUserEntity obj = new Aspnet_PersonalizationPerUserEntity();
            obj.UserId = UserId;  
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId",option),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectWithConditionLST (Aspnet_PersonalizationPerUserEntity obj)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Aspnet_PersonalizationPerUserEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationPerUserEntity></returns>
        public List<Aspnet_PersonalizationPerUserEntity> SelectWithConditionLST (Aspnet_PersonalizationPerUserEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationPerUserEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Aspnet_PersonalizationPerUserEntity());
        }

}
}
